<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	
	<h:body>
		<h:form>
			<table>
				<tr>
					<td>First Name</td>
					<td><h:inputText value="#{mainPageController.user.firstName}"  /></td>
				</tr>
				<tr>
					<td>Last Name</td>
					<td><h:inputText value="#{mainPageController.user.lastName}"  /></td>
				</tr>
				<tr>
					<td>Email</td>
					<td><h:inputText value="#{mainPageController.user.email}"  /></td>
				</tr>
				<tr>
					<td>Phone</td>
					<td><h:inputText value="#{mainPageController.user.phone}"  /></td>
				</tr>
				<tr>
					<td></td>
					<td><h:commandButton action="#{mainPageController.saveUser}" value="Save User" /></td>
				</tr>
			</table>
		</h:form>
	</h:body>
</html>